//
//  BSWebViewController.m
//  BaiSiBuDeJie
//
//  Created by bill on 16/8/28.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "BSWebViewController.h"

@interface BSWebViewController ()

@end

@implementation BSWebViewController
-(void)loadView
{
    UIWebView *webView = [UIWebView new];
    self.view = webView;
    //webView.frame = self.view.bounds;
    //webView.backgroundColor = [UIColor redColor];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    UIWebView *webView = (UIWebView*)self.view;
    
    
    NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    [webView loadRequest:request];
    
    self.navigationItem.title = @"百思不得解";
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
